<template>
	<view class="flex-col homepage">
		<view class="wrapper">
			<view class="wraper-row"></view>
		</view>
		<view class="flex-col wrapper-two">
			<view class="flex-row wraper-row-two">
				<view class="box"></view>
				<view class="u-line-1 text">常用服务</view>
			</view>
			<view class="flex-row wraper-row-three">
				<view class="box-two"></view>
				<view class="box-three" @click="shjf"></view>
				<view class="box-four" @click="fkyq()"></view>
				<view class="box-five"></view>
			</view>
			<view class="flex-row wraper-row-four">
				<view class="u-line-1 text-two">手机开门</view>
				<view class="u-line-1 text-three" @click="shjf">生活缴费</view>
				<view class="u-line-1 text-four" @click="fkyq()">邀请访客</view>
				<view class="u-line-1 text-five" @click="tcjf()">停车缴费</view>
			</view>

		</view>
		<view class="flex-col wrapper-three">
			<view class="flex-row wraper-row-five">
				<view class="box-six"></view>
				<view class="u-line-1 text">智慧社区</view>
			</view>
			<view class="flex-row wraper-row-six">
				<view class="box-seven" @click="wxsb"></view>
				<view class="box-eight" @click="tsjy"></view>
				<view class="box-nine" @click="goActivityAll()"></view>
				<view class="box-ten" @click="gggs"></view>
			</view>
			<view class="flex-row wraper-row-seven">
				<view class="u-line-1 text-two" @click="wxsb">维修上报</view>
				<view class="u-line-1 text-three" @click="tsjy">投诉建议</view>
				<view class="u-line-1 text-four" @click="goActivityAll()">社区活动</view>
				<view class="u-line-1 text-five" @click="gggs">公告公示</view>
			</view>
			<view class="wraper-row-eight" @click="lxwy()"></view>
			<view class="u-line	-1 text-six" @click="lxwy()">联系物业</view>
			<view class="wraper-row-nine"></view>
		</view>

		<view class="dbbox">
			<view>
				<u-icon class="dibu" name="home" @click="sy()" :size="30" label="首页" :label-size="16"
					label-pos="bottom"></u-icon>
				<u-icon class="dibu" name="home" @click="tz()" :size="30" label="服务" :label-size="16"
					label-pos="bottom"></u-icon>
				<u-icon class="dibu" name="home" @click="tzwod()" :size="30" label="我的" :label-size="16"
					label-pos="bottom"></u-icon>
			</view>
		</view>
	</view>
</template>
<script>
	export default {
		data() {
			return {
				j: '',
				ccc:''
			}
		},
		onLoad(params) {
			this.ccc = params.j
		},
		methods: {
			lxwy(){
				uni.navigateTo({
					url: '/pages/gwb/Contact'
				})
			},
			gggs() {
				uni.navigateTo({
					url: '/pages/gwb/ThePublic'
				})
			},
			tsjy() {
				uni.navigateTo({
					url: '/pages/gwb/Complaints'
				})
			},
			goActivityAll() {
				this.j = uni.getStorageSync('wz')
				console.log(this.j)
				uni.navigateTo({
					url: '/pages/gwb/ActivityAll?j=' + this.j
				})
			},
			wxsb() {
				uni.navigateTo({
					url: '/pages/gwb/maintenance'
				})
			},
			shjf() {
				uni.navigateTo({
					url: '/pages/gwb/Lifepaycost'
				})
			},
			sy() {
				uni.navigateTo({
					url: '../gwb/index',
					success: function(res) {
						console.log(res)
					}
				})
			},
			tz() {
				uni.navigateTo({
					url: '../wjx/service',
					success: function(res) {
						console.log(res)
					}
				})
			},
			tzwod() {
				uni.navigateTo({
					url: '../wjx/Myprofile',
					success: function(res) {
						console.log(res)
					}
				})
			},
			fkyq() {
				uni.navigateTo({
					url: '../wjx/Invitevisitors',
					success: function(res) {
						console.log(res)
					}
				})
			},
			tcjf() {
				uni.navigateTo({
					url: 'car/ParkingPayment',
					success: function(res) {
						console.log(res)
					}
				})
			}
		}
	}
</script>
<style lang="scss" scoped>
	/** 全局样式-开始,建议放在公共css样式文件中,比如common.css 或app.vue文件 */

	html,
	body {
		margin: 0;
		width: 100%;
		height: 100%;
		font-size: 16px
	}

	view,
	text,
	image {
		position: relative;
		box-sizing: border-box;
		flex-shrink: 0;
	}

	.dbbox {
		position: fixed;
		width: 1200rpx;
		margin-left: -20px;
		bottom: 0px;
		background: #dbf1e1;
	}

	.dibu {
		float: left;
		margin-left: 70px;
	}

	.flex-col {
		display: flex;
		align-items: flex-start;
		flex-direction: column;
	}

	.flex-row {
		display: flex;
		align-items: flex-start;
	}

	.flex-col .flex-row {
		width: 100%
	}


	/** 全局样式-结束*/

	.homepage {
		padding: 105.438rpx 0rpx 93.501rpx 37.798rpx;
		border-color: #c0c4cc;
		background: #dbf1e1;


		.wrapper {
			width: 660.477rpx;
			margin: 0rpx 0rpx 49.735rpx 5.968rpx;
			padding: 11.936rpx 0rpx 11.936rpx 458.554rpx;
			border-radius: 27.851rpx;
			background: #e7f0ff;

			.wraper-row {
				width: 155.172rpx;
				height: 153.183rpx;
				border-radius: 198.939rpx;
				background: #3d65fe;
			}
		}

		.wrapper-two {
			width: 668.435rpx;
			height: 320.292rpx;
			margin-bottom: 71.618rpx;
			padding: 39.788rpx 0rpx 0rpx 43.767rpx;
			border-color: #cecece;
			border-radius: 39.788rpx;
			background: #ffffff;

			.wraper-row-two {
				width: 332.228rpx;
				justify-content: space-between;
				margin: 0rpx 0rpx 9.947rpx 13.926rpx;

				.box {
					width: 17.905rpx;
					height: 45.756rpx;
					border-radius: 39.788rpx;
					background: #3d65fe;
				}

				.text {
					width: 298.408rpx;
					font-size: 35.809rpx;
					text-align: left;
					font-weight: 500;
					color: rgba(57, 61, 73, 1);
				}
			}

			.wraper-row-three {
				width: 576.923rpx;
				justify-content: space-between;
				margin: 0rpx 0rpx 21.883rpx 7.958rpx;

				.box-two {
					width: 101.459rpx;
					height: 91.512rpx;
					margin-top: 9.947rpx;
					border-radius: 198.939rpx;
					background: #e7f0ff;
				}

				.box-three {
					width: 101.459rpx;
					height: 91.512rpx;
					margin-top: 9.947rpx;
					border-radius: 198.939rpx;
					background: #e7f0ff;
				}

				.box-four {
					width: 101.459rpx;
					height: 91.512rpx;
					margin-top: 5.968rpx;
					border-radius: 198.939rpx;
					background: #e7f0ff;
				}

				.box-five {
					width: 101.459rpx;
					height: 91.512rpx;
					border-radius: 198.939rpx;
					background: #e7f0ff;
				}
			}

			.wraper-row-four {
				width: 596.817rpx;
				justify-content: space-between;

				.text-two {
					width: 113.395rpx;
					margin-top: 5.968rpx;
				}

				.text-three {
					width: 113.395rpx;
					margin-top: 5.968rpx;
				}

				.text-four {
					width: 113.395rpx;
					margin-top: 5.968rpx;
				}

				.text-five {
					width: 113.395rpx;
				}
			}

			.text-six {
				width: 113.395rpx;
			}
		}

		.wrapper-three {
			width: 668.435rpx;
			padding: 35.809rpx 0rpx 47.944rpx 43.767rpx;
			border-radius: 39.788rpx;
			background: #ffffff;

			.wraper-row-five {
				width: 336.207rpx;
				justify-content: space-between;
				margin: 0rpx 0rpx 37.798rpx 11.936rpx;

				.box-six {
					width: 17.905rpx;
					height: 45.756rpx;
					margin-top: 5.968rpx;
					border-radius: 39.788rpx;
					background: #3d65fe;
				}

				.text {
					width: 298.408rpx;
					font-size: 35.809rpx;
					text-align: left;
					font-weight: 500;
					color: rgba(57, 61, 73, 1);
				}
			}

			.wraper-row-six {
				width: 574.934rpx;
				justify-content: space-between;
				margin: 0rpx 0rpx 9.947rpx 5.968rpx;

				.box-seven {
					width: 101.459rpx;
					height: 91.512rpx;
					margin-top: 5.968rpx;
					border-radius: 198.939rpx;
					background: #e7f0ff;
				}

				.box-eight {
					width: 101.459rpx;
					height: 91.512rpx;
					margin-top: 5.968rpx;
					border-radius: 198.939rpx;
					background: #e7f0ff;
				}

				.box-nine {
					width: 101.459rpx;
					height: 91.512rpx;
					margin-top: 5.968rpx;
					border-radius: 198.939rpx;
					background: #e7f0ff;
				}

				.box-ten {
					width: 101.459rpx;
					height: 91.512rpx;
					border-radius: 198.939rpx;
					background: #e7f0ff;
				}
			}

			.wraper-row-seven {
				width: 584.881rpx;
				justify-content: space-between;
				margin: 0rpx 0rpx 17.905rpx 5.968rpx;

				.text-two {
					width: 113.395rpx;
					margin-top: 5.968rpx;
				}

				.text-three {
					width: 113.395rpx;
					margin-top: 5.968rpx;
				}

				.text-four {
					width: 113.395rpx;
					margin-top: 5.968rpx;
				}

				.text-five {
					width: 113.395rpx;
				}
			}

			.wraper-row-eight {
				width: 101.459rpx;
				height: 91.512rpx;
				margin: 0rpx 0rpx 15.915rpx 5.968rpx;
				border-radius: 198.939rpx;
				background: #e7f0ff;
			}

			.text-six {
				width: 113.395rpx;
			}

			.wraper-row-nine {
				width: 101.459rpx;
				height: 91.512rpx;
				border-radius: 198.939rpx;
				top: -725540.451rpx;
				left: -38649.867rpx;
				background: #e7f0ff;
				position: absolute;
			}
		}
	}
</style>
